package com.company.demo11;

public class TestBinarySorytree {

    public static void main(String[] args) {
        int[] arr = new int[] {1,2,3,4,5,6,7,8};
        //创建一颗二叉排序树
        BinarySortTree bst = new BinarySortTree();
//        //循环添加
//        for (int i:arr){
//            bst.add(new Node(i));
//        }
        //查看高度
        System.out.println(bst.root.height());
    }

}
